package com.ruoyi.tws.service.impl;

import com.ruoyi.common.core.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.web.controller.BaseServiceImpl;
import com.ruoyi.tws.mapper.TwsCompanyDriverMapper;
import com.ruoyi.tws.domain.TwsCompanyDriver;
import com.ruoyi.tws.service.ITwsCompanyDriverService;

import java.util.List;

/**
 * 物流公司常用司机Service业务层处理
 *
 * @author ruoyi
 * @date 2023-01-28
 */
@Service
public class TwsCompanyDriverServiceImpl extends BaseServiceImpl<TwsCompanyDriverMapper, TwsCompanyDriver> implements ITwsCompanyDriverService {

    @Autowired
    private TwsCompanyDriverMapper twsCompanyDriverMapper;

    /**
     * 真删除物流公司-司机关系
     * @param driverIds
     * @return
     */
    @Override
    public boolean removes(List<Long> driverIds) {
        return twsCompanyDriverMapper.removes(SecurityUtils.getTenantId(), driverIds);
    }

}
